package net.ikenway.springboot.demo.Dao;

import net.ikenway.springboot.demo.Model.Entity.User;
import org.springframework.data.domain.Example;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * @author MasterKenway <zk@ikenway.net>
 * @Description
 * @date Created Date 12/9/2020
 */
public interface UserRepository extends JpaRepository<User, Long> {
    Optional<User> findByUsername(String username);
}
